package com.wocai.jrt.orgadmin.enterprise.service.impl;

import javax.inject.Inject;
import javax.inject.Named;

import com.wocai.jrt.orgadmin.enterprise.dao.EnterpriseDao;
import com.wocai.jrt.orgadmin.enterprise.model.Enterprise;
import com.wocai.jrt.orgadmin.enterprise.model.EnterpriseBean;
import com.wocai.jrt.orgadmin.enterprise.service.spi.EnterpriseService;

import com.vteba.service.generic.impl.MyBatisServiceImpl;
import com.vteba.tx.jdbc.mybatis.spi.BaseDao;

/**
 * 企业相关的service业务实现。
 * @author yinlei
 * @date 2016-5-6 14:22:15
 */
@Named
public class EnterpriseServiceImpl extends MyBatisServiceImpl<Enterprise, EnterpriseBean, String> implements EnterpriseService {
	// 添加了方法后，记得改为private
	protected EnterpriseDao enterpriseDao;
	
	@Override
	@Inject
	public void setBaseDao(BaseDao<Enterprise, EnterpriseBean, String> enterpriseDao) {
		this.baseDao = enterpriseDao;
		this.enterpriseDao = (EnterpriseDao) enterpriseDao;
	}
}
